package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.pojo.manager.TbHospital;
import com.blacksheep.mtm.pojo.manager.TbHospitalExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbHospitalMapper {
    long countByExample(TbHospitalExample example);

    int deleteByExample(TbHospitalExample example);

    int deleteByPrimaryKey(Integer hospitalId);

    int insert(TbHospital record);

    int insertSelective(TbHospital record);

    List<TbHospital> selectByExample(TbHospitalExample example);

    TbHospital selectByPrimaryKey(Integer hospitalId);

    int updateByExampleSelective(@Param("record") TbHospital record, @Param("example") TbHospitalExample example);

    int updateByExample(@Param("record") TbHospital record, @Param("example") TbHospitalExample example);

    int updateByPrimaryKeySelective(TbHospital record);

    int updateByPrimaryKey(TbHospital record);

    List<TbHospital> selectList(@Param("search") String search, @Param("state") int[] state, @Param("minDate") String minDate,
                                @Param("maxDate") String maxDate, @Param("orderCol") String orderCol,
                                @Param("orderDir") String orderDir);

    int updateStateByPrimaryKey(@Param("id")Integer id,@Param("state")Integer state);

    int deleteBatchById(Integer[] ids);
}